home *** CD-ROM | disk | FTP | other *** search
/ Aminet 49 / Aminet 49 (2002)(GTI - Schatztruhe)[!][Jun 2002].iso / Aminet / util / boot / WBSP_Prefs.lha / WBStartup+Prefs / Source / ChooseGroupWindow.c < prev    next >
C/C++ Source or Header  |  2002-03-06  |  612b  |  28 lines

  1. #include <exec/types.h>
  2. #include <libraries/mui.h>
  3. #include <mui/nlist_mcc.h>
  4.  
  5. #include <proto/intuition.h>
  6.  
  7. #include "WBStartup+Prefs.h"
  8. #include "WBStartupPlusPrefs_Cat.h"
  9.  
  10. void ChooseGroup(char *windowtitle);
  11.  
  12. ULONG __saveds __asm GLVDisplay(register __a1 struct GroupNode *node,register __a2 char **array)
  13. {
  14.     *array=node->group_name;
  15.     return(0);
  16. }
  17. void ChooseGroup(char *windowtitle)
  18. {
  19.   ULONG entries;
  20.  
  21.   GetAttr(MUIA_NList_Entries,glsobj,&entries);
  22.   if (entries)
  23.   {
  24.     SetAttrs(winobj,MUIA_Window_Sleep,TRUE,TAG_DONE);
  25.     SetAttrs(gwinobj,MUIA_Window_Title,windowtitle,MUIA_Window_Open,TRUE,TAG_DONE);
  26.   }
  27. }
  28.